# 幻灯片方式滑动播放

<swiper class="music-swiper" indicator-dots="{{true}}" previous-margin="50rpx" next-margin="50rpx" current="{{currentIndex}}">
  <swiper-item class="music" wx:for="{{thisWeekMovie}}">
    # <view class="container music-card">
    #   <image class="music-image" src="{{item.imagePath}}"></image>
    #   <text>第{{index+1}}周：{{item.name}}</text>
    #   <text>点评：{{item.comment}}</text>
    #   <text wx:if="{{item.higlyrecommend}}" style="font-size:16;color:red;">安利</text>
    #   <text bindtap="f0" wx:if="{{index < (thisWeekMovie.length -1)}}" class="return-button">返回本周推荐</text>
    # </view>
  </swiper-item>
</swiper>

# indicator-dots="{{true}}" 页面滑动指示
# previous-margin="50rpx" next-margin="50rpx" 每一页幻灯片会显示部分下一页幻灯片的内容，引导用户滑动


### current
# 设置默认幻灯片
# 实例：添加按键跳转到最新一页幻灯片

# wxml
current="{{currentIndex}}"

# js文件下生命周期函数
onLoad: function (options) {
    this.setData({
      currentIndex: this.data.thisWeekMovie.length - 1
    })
  },
